package com.pvdnc.worldmagisk;

import com.pvdnc.worldmagisk.shell.Packet;
import com.pvdnc.worldmagisk.shell.server.ShellServer;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public abstract class SimpleServerHandler<I extends Packet> extends SimpleChannelInboundHandler<I> {

    private final ShellServer mServer;
    public SimpleServerHandler(ShellServer server,String commmand){
        mServer=server;

    }

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, I msg) throws Exception {

    }

    public abstract void onReceived(ChannelHandlerContext ctx,I msg);


}
